-
-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow customizing badge, button, shape, slider sizes #464
Conversation
Is there any way to edit theme's YAML in dev environment? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool 👍 Thank you!
I'm wondering if we must split the button and the slider height into 2 variables or not 😅
I think you need to create a themes folder next to configuration file and put your theme yaml file in it. |
Those are two different cards so I think it's better to split them up? |
Button can be next to slider (fan card, light card). So I think it's better to have the same height for all controls for consistency. Maybe we can add a button ratio variable too if needed. |
Feel free to update it! |
I will merge your PR, do the change and I will ping you 🙂 |
* Update Vietnamese translation (piitaya#448) * Update vi.json * Change "Chip" to "chip" * feat(humidifier): add humidifier support (piitaya#346) * feat(humidifier): card * feat(humidifier): improve card * fix: view name * fix: humidity live * fix: MushroomBaseElement * fix: clean unused dependencies * fix: hacard * fix: collapsible controls * fix: remove buttons control * fix: remove buttons control * fix(humidifier): some fixes (piitaya#451) * fix: remove console.log * feat(media-player): show volume next to state when not unavailable/unknown/off (piitaya#374) * Show volume next to state * Revert "Show volume next to state" This reverts commit c40e32f. Undo due to suggestion from @acesyde * Reworked volume state based on feedback Co-authored-by: Paul Bottein <paul.bottein@gmail.com> * feat(media-player): add option to display volume level (piitaya#452) * chore: bump deps (piitaya#453) * 1.8.0 * Update README.md * Update German translation (piitaya#458) * Update de.json * Update de.json * Update de.json * Update zh-Hant.json (piitaya#455) * Update alarm card documentation according to piitaya#376 (piitaya#459) * Allow customizing badge, button, shape, slider sizes (piitaya#464) * Allow customizing badge, button, shape, slider sizes * Add --shape-avatar-size * feat(themes): improve css variables (piitaya#466) * fix(chip): fix avatar size for chip * fix(chip): add avatar only support (piitaya#468) * fix(actions): allow scroll within actions (piitaya#469) * Fix strict error handling in templates (piitaya#472) * Update German translation (piitaya#474) * Update de.json * Update de.json * Update de.json * Update de.json * 1.8.1 * Update README to reflect recent UI changes in HA 2022.5 (piitaya#470) * fix(ios): fix button size on ios * 1.8.2 * Update Italian translation (piitaya#478) Added humidity control translation Added show volume translation * 1.8.3 * update for new css variables Co-authored-by: redphx <96280+redphx@users.noreply.github.com> Co-authored-by: Pierre-Emmanuel Mercier <acesyde@gmail.com> Co-authored-by: Paul Bottein <paul.bottein@gmail.com> Co-authored-by: madmurl0c <42262826+madmurl0c@users.noreply.github.com> Co-authored-by: steffenrapp <88974099+steffenrapp@users.noreply.github.com> Co-authored-by: rhuba8324 <53090204+rhuba8324@users.noreply.github.com> Co-authored-by: Julien Ehrhart <julien.ehrhart@live.com> Co-authored-by: Franck Nijhof <git@frenck.dev> Co-authored-by: Doryx <81909485+doryxbirb@users.noreply.github.com>
Sorry can someone explain me how to change the size of the icons. I still don't understand how to do it. |
Description
Allows customizing icon sizes of badge, button, shape, slider by declaring these variables in theme YAML:
Should add these variables to theme's document after merging.
Related Issue
Not entirely fix this issue (it applies to the entire theme, not just template card), but at least it lets users change icon sizes: piitaya/lovelace-mushroom-themes#13
Also #385
Motivation and Context
How Has This Been Tested
Types of changes
Checklist